package com.fowo.api.model.supplier.invoice.order.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fowo.api.common.excel.ImageConvert;
import com.fowo.api.sys.entity.SysFile;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 供应商发货单子表 导入导出辅助模型 */
@Getter
@Setter
public class SupplierInvoiceOrderProductExcelPo {

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属供应商发货单")
  private String parentSupplierInvoiceOrderSupplierId;

  @ExcelIgnore
  @ExcelProperty(value = "所属供应商发货单")
  private Long parentSupplierInvoiceOrder;

  @Size(max = 50, message = "所属发货单长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "所属发货单")
  private String supplierInvoiceOrderId;

  @ExcelProperty(value = "总毛重")
  private java.math.BigDecimal totalGross;

  @ExcelProperty(value = "总体积")
  private java.math.BigDecimal totalVolume;

  @Size(max = 50, message = "品名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String nameName;

  @ExcelIgnore
  @ExcelProperty(value = "品名")
  private Long name;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "税费长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "税费")
  private String taxAmount;

  @ExcelProperty(value = "箱数")
  private Integer boxNum;

  @Size(max = 50, message = "箱规名称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "箱规名称")
  private String boxList;

  @ExcelProperty(value = "箱子毛重（kg）")
  private java.math.BigDecimal boxGross;

  @ExcelProperty(value = "箱子长(cm)")
  private java.math.BigDecimal boxLength;

  @ExcelProperty(value = "箱子宽")
  private java.math.BigDecimal boxWidth;

  @ExcelProperty(value = "箱子高")
  private java.math.BigDecimal boxHeight;

  @ExcelProperty(value = "单箱数量")
  private java.math.BigDecimal quantityInCase;

  @ExcelProperty(value = "总重量（kg）")
  private java.math.BigDecimal tatolWeight;

  @ExcelProperty(value = "总体积重")
  private java.math.BigDecimal tatolVolumeWeight;

  @ExcelProperty(value = "单品净重")
  private java.math.BigDecimal oneSuttle;

  @ExcelProperty(value = "单品毛重")
  private java.math.BigDecimal oneGross;

  @ExcelProperty(value = "包装规格（cm）长")
  private java.math.BigDecimal packageLength;

  @ExcelProperty(value = "包装规格（cm）宽")
  private java.math.BigDecimal packageWeight;

  @ExcelProperty(value = "包装规格（cm）高")
  private java.math.BigDecimal packageHeight;

  @ExcelProperty(value = "图片", converter = ImageConvert.class)
  private List<SysFile> picUrl;
}
